                    	
                    		<div class="middle-box-white">
                        	    <div class="order">
                        	        <i class="title_order">Đặt hàng</i>
					<form id="frm_buy" action="<{$APPLICATION_URL}>/Browse/Deals/processpayment/id/<{$dealsEntity->id}>" method="post">
                        	        <div class="table_order">
                        	            <table class="table_title">
                        	                <tr>
                        	                    <td class="product">
                        	                        <div class="title_pay"><span>Sản phẩm / Dịch vụ</span></div>
                        	                    </td>
                        	                     <td class="pri">
                	                                <div class="title_pay"><span>Đơn giá</span></div>
                    	                        </td>

                    	                        <td class="num">
                	                                <div class="title_pay"><span>Số lượng</span></div>
                    	                        </td>                    	                       
                        	                    <td class="price">
                	                                <div class="title_pay"><span>Thành tiền</span></div>
                        	                    </td>    
                        	                </tr>
                        	            </table>
                        	            <table class="table_content">
                        	                <tr>
                        	                    <td class="product">
                        	                        <div class="content">
                        	                        <i id="iTenSP">
                                                    	<a href="<{$APPLICATION_URL}>/Browse/Deals/details/city/<{$city}>/id/<{$dealsEntity->id}>"><{$grouponEntity->groupon_name}></a>
                                                    	</i>
                                                    </div>     
                        	                    </td> 
                        	                    <td class="pri">
                    	                            <div class="content"><i id="spnGia"><{$dealsEntity->sale_price|number_format}></i></div>
                    	                        </td>
                    	                        <td class="num">
                    	                            <div class="content">
                                                    <select name="quantity" id="ddlSL_0">
                                                        <option value="1">1</option>
                                                        <option value="2">2</option>
                                                    </select></div>
                    	                        </td>                    	                        
                        	                    <td class="price">
                        	                        <div class="content"><i id="spnTongGia"><{$dealsEntity->sale_price|number_format}></i></div> 
                        	                    </td>
                        	                </tr>         	                
                        	            </table>         
                        	            <div class="balance"><i id="iSoDuTK"><{$userEntity->balance|number_format}></i></div>           	            
                        	            <div class="balance_title"><i>Số dư tài khoản của bạn</i></div>
                        	            <div class="table_price"><span id="pTotal">Tổng số tiền: <{$dealsEntity->sale_price|number_format}> VNĐ</span></div>
                        	        </div>
                        	        
                        	        <input type="hidden" name="paymentMethod" value="" id="frm_paymentMethod">
                        	        <input type="hidden" name="city" value="<{$city}>">
                        	        <input type="hidden" value="actionForm" name="actionForm">
                        	        
                        	        <input type="hidden" name="fullname" value="" id="frm_fullname">
                        	        <input type="hidden" name="phone" value="" id="frm_phone">
                        	        <input type="hidden" name="number_house" value="" id="frm_number_house">
                        	        <input type="hidden" name="street" value="" id="frm_street">
                        	        <input type="hidden" name="ward_ngo" value="" id="frm_ward_ngo">
                        	        <input type="hidden" name="district" value="" id="frm_district">
                        	        <input type="hidden" name="note" value="" id="frm_note">
                        	        
                        	        <input type="hidden" name="sender_fullname" value="" id="sender_frm_fullname">
                        	        <input type="hidden" name="sender_phone" value="" id="sender_frm_phone">
                        	        <input type="hidden" name="sender_number_house" value="" id="sender_frm_number_house">
                        	        <input type="hidden" name="sender_street" value="" id="sender_frm_street">
                        	        <input type="hidden" name="sender_ward_ngo" value="" id="sender_frm_ward_ngo">
                        	        <input type="hidden" name="sender_district" value="" id="sender_frm_district">
                        	        
                        	        <input type="hidden" name="isGift" value="0" id="frm_isGift">
                        	    </form>
                        	        <span id="pTitle1" class="node_up">Bạn sẽ nhận được thẻ do MuaHội.com cung cấp sau khi thanh toán.</span>
                        	        <!--  <img src="images/20111159294772411537.jpg" id="imgVoucherCard" width="521" height="304" alt="abc" title="" />-->
                        	        
                        	    </div>
                            </div>
                    	
<!--Unknown-->

                            <!-- cac hình thức thanh toán --> 
                           
                           <div style="overflow:hidden;" class="middle-box-white">
                                <div class="payment">
                                     <i class="title_order">Chọn phương thức thanh toán</i>
                                     <ul class="payment_content">
                                      <!-- Mua trua tiep -->   
                                        <li class="icon_home">
                                            <a id="aPTTT_0" name="" href="javascript:void(0);">
                                                <i class="checkbtn  checked"></i>                                                
                                                <span class="img_payment ">Thanh toán trực tiếp</span>
                                            </a>
                                        </li>
                                        
                                        <li style="display: block;" id="liPTTT_0" class="box_payment ">
                                            
                                            <ul class="box_payment_content">
                                                <li class="textbox">
                                                    <div class="bg_txtb"><input type="text" value="<{$userEntity->fullname}>" id="txtName_0" name="txtName_0"></div>
                                                    <i>*</i>
                                                    <span>Họ và tên</span>
                                                </li>
                                                <li class="textbox">
                                                    <div class="bg_txtb"><input type="text" value="<{$userEntity->phone}>" id="txtPhone_0" name="txtPhone_0"></div>
                                                    <i>*</i>
                                                    <span>Điện thoại</span>
                                                </li>
                                                <li class="textbox bg_add">
                                                    <ul class="box_payment_content">
                                                        <li class="textbox">
                                                            <div class="bg_txtb street"><input type="text"  value="<{$userLocationEntity->street}>" id="txtDuong_0" name="txtDuong_0"></div>
                                                            <i>*</i>
                                                            <span>Đường</span>
                                                        </li>
                                                        <li class="textbox num_home">
                                                            <div class="bg_txtb number"><input type="text"  value="<{$userLocationEntity->number}>" id="txtSoNha_0" name="txtSoNha_0"></div>
                                                            <i>*</i>
                                                            <span>Số nhà</span>
                                                        </li>
                                                        
                                                        <li class="textbox " id="liWard_0">
                                                            <div class="bg_txtb"><input type="text"  value="<{$userLocationEntity->ward}>" id="txtWard_0" name="txtWard_0"></div>
                                                            <i>*</i>
                                                            <span>Phường</span>
                                                        </li>     
                                                        
                                                               
                                                                                                           
                                                        <li class="textbox" id="dQuan_0">
                                                            <div class="bg_txtb">
                                                               <input type="text"  value="<{$userLocationEntity->district_id}>" id="txtQuan_0" name="txtQuan_0">
                                                                <input type="text" value="22" style="display: none;" readonly="readonly" id="txtQuanHidden_0" name="txtQuanHidden_0">
                                                            </div>
                                                            <i>*</i>
                                                            <span>Quận</span>
                                                        </li>
                                                                                                              
                                                        <li class="textbox" id="dChangePosition">
                                                            <a class="btn_change_add" id="aChangePos_0" href="http://www.nhommua.com/tp-ho-chi-minh/Profile/Location.aspx?CityID=8&amp;sp=7F020002037C&amp;Address=0"></a>
                                                        </li>
                                                    </ul>
                                                </li>                                                
                                               
                                                <li style="padding:0" class="textbox">
                                                    <span style="line-height:24px;float:left;width:79px;text-align:right;">Lời nhắn</span>
                                                    <div style="width:auto; margin:0;" class="bg_txtb textarea"><textarea rows="2" cols="8" style="width:528px;" id="txtDesc_0" name="txtDesc_0"></textarea></div>                                                   
                                                </li>
                                                <li class="textbox request">
                                                    <ul class="info_line">
                                                        
                                                        <li style="display:none;" id="dConfirm_0">
                                                             
                                                            
                                                        </li>
                                                        <li style="display:block;" id="dSubScribe_0">
                                                             
                                                        </li>
                                                    </ul>
                                                </li>
                                                <li class="textbox">                                                    
                                                    <a id="btnTT_0" rel="Invoice" href="javascript:void(0);" class="btn_mua_small"></a>
                                                    <span class="payment-note" id="eMess_0"></span>
                                                </li>
                                               

                                            </ul>
                                        </li>
                                       <!-- end mua truc tiep -->
                                       <!-- mua bang paypal -->
                                       <li class="icon_smartlink">
                                            <a id="aPTTT_1" name="" href="javascript:void(0)">
                                                <i class="checkbtn "></i>
                                                <span class="img_payment ">Paypal</span>
                                            </a>
                                        </li>
                                           <!-- mua lam qua -->
                                         <li style="display:none" id="liGift_1" class="box_payment">
                                            <div class="ogr_gift"><i></i></div>
                                            <div class="bg_add bg_gift">
                                                <a onclick="showInfoGift(this);" id="dCheckGift_1" name="" href="javascript:void(0);"><i class="gift_check checked"></i></a>
                                                <input type="checkbox" style="display:none" id="cbGift_1" name="cbGift_1">
                                                <span>Dùng làm quà tặng</span>  
                                            </div>
                                            
                                            <ul class="box_payment_content">
                                                <li class="textbox bg_add">
                                                    <ul class="box_payment_content gift">
                                                        <li class="info_gift">
                                                            <span>Thông tin người gửi</span>
                                                        </li>
                                                        <li class="textbox name">
                                                            <div class="bg_txtb"><input type="text" value="<{$userEntity->fullname}>" id="txtName_1a" name="txtName_1a"></div>
                                                            <i>*</i>
                                                            <span>Họ và tên</span>
                                                        </li>                                                        
                                                          <li class="textbox phone">
                                                            <div class="bg_txtb"><input type="text" value="<{$userEntity->phone}>" id="txtPhone_1a" name="txtPhone_1a"></div>
                                                            <i>*</i>
                                                            <span>Điện thoại</span>
                                                        </li>
                                                        <li class="textbox change_color">
                                                            <ul class="box_payment_content ">
                                                                <li class="textbox">
                                                                    <div class="bg_txtb street"><input type="text"  value="<{$userLocationEntity->street}>" id="txtDuong_1a" name="txtDuong_1a"></div>
                                                                    <i>*</i>
                                                                    <span>Đường</span>
                                                                </li>
                                                                <li class="textbox num_home">
                                                                    <div class="bg_txtb number"><input type="text"  value="<{$userLocationEntity->number}>" id="txtSoNha_1a" name="txtSoNha_1a"></div>
                                                                    <i>*</i>
                                                                    <span>Số nhà</span>
                                                                </li>
                                                                <li class="textbox " id="liWard_1a">
                                                                    <div class="bg_txtb"><input type="text"  value="<{$userLocationEntity->ward}>" id="txtWard_1a" name="txtWard_1a"></div>
                                                                    <i>*</i>
                                                                    <span>Phường</span>
                                                                </li>
                                                                 
                                                                <li class="textbox" id="dQuan_1a">
                                                                    <div class="bg_txtb">
                                                                        <input type="text"  value="<{$userLocationEntity->district_id}>" id="txtQuan_1a" name="txtQuan_1a">
                                                                        <input type="text" value="22" readonly="readonly" style="display: none;" id="txtQuanHidden_1a" name="txtQuanHidden_1a">
                                                                    </div>
                                                                    <i>*</i>
                                                                    <span>Quận</span>
                                                                </li>
                                                                    
                                                                <li class="textbox" id="dChangePosition_1a">
                                                                    <a class="btn_change_add" id="aChangePos_1a" href="http://www.nhommua.com/tp-ho-chi-minh/Profile/Location.aspx?CityID=8&amp;sp=7F010809057C&amp;Address=5"></a>
                                                                </li>
                                                                <li class=""></li>
                                                            </ul>
                                                        </li>
                                                      
                                                        <li class="textbox message">
                                                            <span style="line-height:24px;float:left;width:79px;text-align:right;">Lời nhắn</span>
                                                            <div style="width:502px; margin:0;" class="bg_txtb textarea"><textarea style="width:476px;" cols="8" rows="2" id="txtDesc_1a" name="txtDesc_1a"></textarea></div>
                                                            
                                                        </li>
                                                    </ul>
                                                </li>
                                                <li class="textbox bg_add">
                                                    <ul class="box_payment_content gift">
                                                        <li class="info_gift">
                                                            <span>Thông tin người nhận - Nơi giao Voucher</span>
                                                        </li>
                                                        <li class="textbox name">
                                                            <div class="bg_txtb "><input type="text" value="<{$userEntity->fullname}>" id="txtName_1b" name="txtName_1b"></div>
                                                            <i>*</i>
                                                            <span>Họ và tên</span>
                                                        </li>
                                                          <li class="textbox phone">
                                                            <div class="bg_txtb"><input type="text" value="<{$userEntity->phone}>" id="txtPhone_1b" name="txtPhone_1b"></div>
                                                            <i>*</i>
                                                            <span>Điện thoại</span>
                                                        </li>
                                                        <li class="textbox change_color">
                                                            <ul class="box_payment_content ">
                                                                <li class="textbox">
                                                                    <div class="bg_txtb street"><input type="text"  value="<{$userLocationEntity->street}>" id="txtDuong_1b" name="txtDuong_1b"></div>
                                                                    <i>*</i>
                                                                    <span>Đường</span>
                                                                </li>
                                                                <li class="textbox num_home">
                                                                    <div class="bg_txtb number"><input type="text"  value="<{$userLocationEntity->number}>" id="txtSoNha_1b" name="txtSoNha_1b"></div>
                                                                    <i>*</i>
                                                                    <span>Số nhà</span>
                                                                </li>
                                                                <li class="textbox " id="liWard_1b">
                                                                    <div class="bg_txtb"><input type="text"  value="<{$userLocationEntity->ward}>" id="txtWard_1b" name="txtWard_1b"></div>
                                                                    <i>*</i>
                                                                    <span>Phường</span>
                                                                </li>
                                                                 
                                                                <li class="textbox" id="dQuan_1b">
                                                                    <div class="bg_txtb">
                                                                        <input type="text"  value="<{$userLocationEntity->district_id}>" id="txtQuan_1b" name="txtQuan_1b">
                                                                        <input type="text" value="22" readonly="readonly" style="display: none;" id="txtQuanHidden_1b" name="txtQuanHidden_1b">
                                                                    </div>
                                                                    <i>*</i>
                                                                    <span>Quận</span>
                                                                </li>
                                                                    
                                                                <li class="textbox" id="dChangePosition_1b">
                                                                    <a class="btn_change_add" id="aChangePos_1b" href="http://www.nhommua.com/tp-ho-chi-minh/Profile/Location.aspx?CityID=8&amp;sp=7F010809057C&amp;Address=6"></a>
                                                                </li>
                                                                <li class=""></li>
                                                            </ul>
                                                        </li>
                                                      
                                                        <li class="textbox message">
                                                            <span style="line-height:24px;float:left;width:79px;text-align:right;">Lời nhắn</span>
                                                            <div style="width:502px; margin:0;" class="bg_txtb textarea "><textarea style="width:476px;" cols="8" rows="2" id="txtDesc_1b" name="txtDesc_1b"></textarea></div>
                                                            
                                                        </li>
                                                    </ul>
                                                </li>
                                                <li class="textbox request">
                                                    <ul class="info_line">
                                                        
                                                        <li style="display:none;" id="dConfirm_1Gift">
                                                            
                                                        </li>
                                                        <li style="display:block;" id="dSubScribe_1Gift">
                                                           
                                                        </li>
                                                    </ul>
                                                </li>
                                                <li class="textbox">                                                    
                                                    <a class="btn_mua_small" id="btnTT_1Gift" href="javascript:void(0)" rel="Paypal"></a>
                                                    <span class="payment-note" id="eMess_1Gift"></span>
                                                </li>
                                            </ul>
                                        </li>  	
                                           <!-- end mua lam qua --> 
                                           <!-- mua no gift -->
                                           <li style="display: none;" id="liNoGift_1" class="box_payment">
                                            <div class="ogr_gift">
                                                <i></i>
                                            </div>
                                            <div class="bg_add bg_gift">
                                                <a onclick="showInfoGift(this);" id="dCheckNoGift_1" href="javascript:void(0);"><i class="gift_check"></i></a>
                                                <span>Dùng làm quà tặng</span>  
                                            </div>
                                            
                                            <ul class="box_payment_content">
                                                <li class="textbox">
                                                    <div class="bg_txtb"><input type="text" value="<{$userEntity->fullname}>" id="txtName_1" name="txtName_1"></div>
                                                    <i>*</i>
                                                    <span>Họ và tên</span>
                                                </li>
                                                 <li class="textbox">
                                                    <div class="bg_txtb"><input type="text" value="<{$userEntity->phone}>" id="txtPhone_1" name="txtPhone_1"></div>
                                                    <i>*</i>
                                                    <span>Điện thoại</span>
                                                </li>
                                                <li class="textbox bg_add">
                                                    <ul class="box_payment_content">
                                                        <li class="textbox">
                                                            <div class="bg_txtb street"><input type="text"  value="<{$userLocationEntity->street}>" id="txtDuong_1" name="txtDuong_1"></div>
                                                            <i>*</i>
                                                            <span>Đường</span>
                                                        </li>
                                                        <li class="textbox num_home">
                                                            <div class="bg_txtb number"><input type="text"  value="<{$userLocationEntity->number}>" id="txtSoNha_1" name="txtSoNha_1"></div>
                                                            <i>*</i>
                                                            <span>Số nhà</span>
                                                        </li>
                                                        <li class="textbox " id="liWard_1">
                                                            <div class="bg_txtb"><input type="text"  value="<{$userLocationEntity->ward}>" id="txtWard_1" name="txtWard_1"></div>
                                                            <i>*</i>
                                                            <span>Phường</span>
                                                        </li>
                                                         
                                                        <li class="textbox" id="dQuan_1">
                                                            <div class="bg_txtb">
                                                                <input type="text"  value="<{$userLocationEntity->district_id}>" id="txtQuan_1" name="txtQuan_1">
                                                                <input type="text" value="22" style="display:none" readonly="readonly" id="txtQuanHidden_1" name="txtQuanHidden_1">
                                                            </div>
                                                            <i>*</i>
                                                            <span>Quận</span>
                                                        </li>
                                                            

                                                        <li class="textbox" id="dChangePosition_1">
                                                            <a class="btn_change_add" id="aChangePos_1" href="http://www.nhommua.com/tp-ho-chi-minh/Profile/Location.aspx?CityID=8&amp;sp=7F010809057C&amp;Address=4"></a>
                                                        </li>
                                                    </ul>
                                                </li>                                               
                                                <li style="padding:0;" class="textbox">
                                                    <span style="line-height:24px;float:left;width:79px;text-align:right;">Lời nhắn</span>
                                                    <div style="width:auto; margin:0;" class="bg_txtb textarea"><textarea style="width:528px;" cols="8" rows="2" id="txtDesc_1" name="txtDesc_1"></textarea></div>                                                    
                                                </li>
                                                <li class="textbox request">
                                                    <ul class="info_line">
                                                        
                                                        <li style="display:none;" id="dConfirm_1">
                                                             
                                                            
                                                        </li>
                                                        <li style="display:block;" id="dSubScribe_1">
                                                             
                                                        </li>
                                                    </ul>
                                                </li>
                                                <li class="textbox">                                                    
                                                    <a id="btnTT_1" name="" href="javascript:void(0)" class="btn_mua_small" rel="Paypal"></a>
                                                    <span class="payment-note" id="eMess_1"></span>
                                                </li>
                                            </ul>
                                        </li> 
                                        
                                           <!-- end mua no gift -->   	
                                       <!-- end mua bang paypal  -->
                                       <!-- mua bang ngan luong -->
                                       <li class="icon_smartlink">
                                            <a id="aPTTT_2" name="" href="javascript:void(0)">
                                                <i class="checkbtn "></i>
                                                <span class="img_payment ">Ngân lượng</span>
                                            </a>
                                        </li>
                                           <!-- mua lam qua -->
                                         <li style="display:none" id="liGift_2" class="box_payment">
                                            <div class="ogr_gift"><i></i></div>
                                            <div class="bg_add bg_gift">
                                                <a onclick="showInfoGift(this);" id="dCheckGift_2" name="" href="javascript:void(0);"><i class="gift_check checked"></i></a>
                                                <input type="checkbox" style="display:none" id="cbGift_2" name="cbGift_2">
                                                <span>Dùng làm quà tặng</span>  
                                            </div>
                                            
                                            <ul class="box_payment_content">
                                                <li class="textbox bg_add">
                                                    <ul class="box_payment_content gift">
                                                        <li class="info_gift">
                                                            <span>Thông tin người gởi</span>
                                                        </li>
                                                        <li class="textbox name">
                                                            <div class="bg_txtb"><input type="text" value="<{$userEntity->fullname}>" id="txtName_2a" name="txtName_2a"></div>
                                                            <i>*</i>
                                                            <span>Họ và tên</span>
                                                        </li>                                                        
                                                          <li class="textbox phone">
                                                            <div class="bg_txtb"><input type="text" value="<{$userEntity->phone}>" id="txtPhone_2a" name="txtPhone_2a"></div>
                                                            <i>*</i>
                                                            <span>Ðiện thoại</span>
                                                        </li>
                                                        <li class="textbox change_color">
                                                            <ul class="box_payment_content ">
                                                                <li class="textbox">
                                                                    <div class="bg_txtb street"><input type="text"  value="C?ng Hòa" id="txtDuong_2a" name="txtDuong_2a"></div>
                                                                    <i>*</i>
                                                                    <span>Ðuờng</span>
                                                                </li>
                                                                <li class="textbox num_home">
                                                                    <div class="bg_txtb number"><input type="text"  value="<{$userLocationEntity->number}>" id="txtSoNha_2a" name="txtSoNha_2a"></div>
                                                                    <i>*</i>
                                                                    <span>Số nhà</span>
                                                                </li>
                                                                <li class="textbox " id="liWard_2a">
                                                                    <div class="bg_txtb"><input type="text"  value="<{$userLocationEntity->ward}>" id="txtWard_2a" name="txtWard_2a"></div>
                                                                    <i>*</i>
                                                                    <span>Phuờng</span>
                                                                </li>
                                                                 
                                                                <li class="textbox" id="dQuan_2a">
                                                                    <div class="bg_txtb">
                                                                        <input type="text"  value="<{$userLocationEntity->district_id}>" id="txtQuan_2a" name="txtQuan_2a">
                                                                        <input type="text" value="22" readonly="readonly" style="display: none;" id="txtQuanHidden_2a" name="txtQuanHidden_2a">
                                                                    </div>
                                                                    <i>*</i>
                                                                    <span>Quận</span>
                                                                </li>
                                                                    
                                                                <li class="textbox" id="dChangePosition_2a">
                                                                    <a class="btn_change_add" id="aChangePos_2a" href="http://www.nhommua.com/tp-ho-chi-minh/Profile/Location.aspx?CityID=8&amp;sp=7F010809057C&amp;Address=5"></a>
                                                                </li>
                                                                <li class=""></li>
                                                            </ul>
                                                        </li>
                                                      
                                                        <li class="textbox message">
                                                            <span style="line-height:24px;float:left;width:79px;text-align:right;">Lời nhắn</span>
                                                            <div style="width:502px; margin:0;" class="bg_txtb textarea"><textarea style="width:476px;" cols="8" rows="2" id="txtDesc_2a" name="txtDesc_2a"></textarea></div>
                                                            
                                                        </li>
                                                    </ul>
                                                </li>
                                                <li class="textbox bg_add">
                                                    <ul class="box_payment_content gift">
                                                        <li class="info_gift">
                                                            <span>Thông tin nguời nhận - Nơi giao Voucher</span>
                                                        </li>
                                                        <li class="textbox name">
                                                            <div class="bg_txtb "><input type="text" value="<{$userEntity->fullname}>" id="txtName_2b" name="txtName_2b"></div>
                                                            <i>*</i>
                                                            <span>Họ và tên</span>
                                                        </li>
                                                          <li class="textbox phone">
                                                            <div class="bg_txtb"><input type="text" value="<{$userEntity->phone}>" id="txtPhone_2b" name="txtPhone_2b"></div>
                                                            <i>*</i>
                                                            <span>Ðiện thoại</span>
                                                        </li>
                                                        <li class="textbox change_color">
                                                            <ul class="box_payment_content ">
                                                                <li class="textbox">
                                                                    <div class="bg_txtb street"><input type="text"  value="C?ng Hòa" id="txtDuong_2b" name="txtDuong_2b"></div>
                                                                    <i>*</i>
                                                                    <span>Ðuờng</span>
                                                                </li>
                                                                <li class="textbox num_home">
                                                                    <div class="bg_txtb number"><input type="text"  value="<{$userLocationEntity->number}>" id="txtSoNha_2b" name="txtSoNha_2b"></div>
                                                                    <i>*</i>
                                                                    <span>Số nhà</span>
                                                                </li>
                                                                <li class="textbox " id="liWard_2b">
                                                                    <div class="bg_txtb"><input type="text"  value="<{$userLocationEntity->ward}>" id="txtWard_2b" name="txtWard_2b"></div>
                                                                    <i>*</i>
                                                                    <span>Phường</span>
                                                                </li>
                                                                 
                                                                <li class="textbox" id="dQuan_2b">
                                                                    <div class="bg_txtb">
                                                                        <input type="text"  value="<{$userLocationEntity->district_id}>" id="txtQuan_2b" name="txtQuan_2b">
                                                                        <input type="text" value="22" readonly="readonly" style="display: none;" id="txtQuanHidden_2b" name="txtQuanHidden_2b">
                                                                    </div>
                                                                    <i>*</i>
                                                                    <span>Quận</span>
                                                                </li>
                                                                    
                                                                <li class="textbox" id="dChangePosition_2b">
                                                                    <a class="btn_change_add" id="aChangePos_2b" href="http://www.nhommua.com/tp-ho-chi-minh/Profile/Location.aspx?CityID=8&amp;sp=7F010809057C&amp;Address=6"></a>
                                                                </li>
                                                                <li class=""></li>
                                                            </ul>
                                                        </li>
                                                      
                                                        <li class="textbox message">
                                                            <span style="line-height:24px;float:left;width:79px;text-align:right;">Lời nhắn</span>
                                                            <div style="width:502px; margin:0;" class="bg_txtb textarea "><textarea style="width:476px;" cols="8" rows="2" id="txtDesc_2b" name="txtDesc_2b"></textarea></div>
                                                            
                                                        </li>
                                                    </ul>
                                                </li>
                                                <li class="textbox request">
                                                    <ul class="info_line">
                                                        
                                                        <li style="display:none;" id="dConfirm_2Gift">
                                                             
                                                          
                                                        </li>
                                                        <li style="display:block;" id="dSubScribe_2Gift">
                                                            
                                                        </li>
                                                    </ul>
                                                </li>
                                                <li class="textbox">                                                    
                                                    <a class="btn_mua_small" id="btnTT_2Gift" href="javascript:void(0)" rel="Nganluong"></a>
                                                    <span class="payment-note" id="eMess_2Gift"></span>
                                                </li>
                                            </ul>
                                        </li>  	
                                           <!-- end mua lam qua --> 
                                           <!-- mua no gift -->
                                           <li style="display: none;" id="liNoGift_2" class="box_payment">
                                            <div class="ogr_gift">
                                                <i></i>
                                            </div>
                                            <div class="bg_add bg_gift">
                                                <a onclick="showInfoGift(this);" id="dCheckNoGift_2" href="javascript:void(0);"><i class="gift_check"></i></a>
                                                <span>Dùng làm quà tặng</span>  
                                            </div>
                                            
                                            <ul class="box_payment_content">
                                                <li class="textbox">
                                                    <div class="bg_txtb"><input type="text" value="<{$userEntity->fullname}>" id="txtName_2" name="txtName_2"></div>
                                                    <i>*</i>
                                                    <span>Họ và tên</span>
                                                </li>
                                                 <li class="textbox">
                                                    <div class="bg_txtb"><input type="text" value="<{$userEntity->phone}>" id="txtPhone_2" name="txtPhone_2"></div>
                                                    <i>*</i>
                                                    <span>Ðiện thoại</span>
                                                </li>
                                                <li class="textbox bg_add">
                                                    <ul class="box_payment_content">
                                                        <li class="textbox">
                                                            <div class="bg_txtb street"><input type="text"  value="C?ng Hòa" id="txtDuong_2" name="txtDuong_2"></div>
                                                            <i>*</i>
                                                            <span>Ðuờng</span>
                                                        </li>
                                                        <li class="textbox num_home">
                                                            <div class="bg_txtb number"><input type="text"  value="<{$userLocationEntity->number}>" id="txtSoNha_2" name="txtSoNha_2"></div>
                                                            <i>*</i>
                                                            <span>Số nhà</span>
                                                        </li>
                                                        <li class="textbox " id="liWard_2">
                                                            <div class="bg_txtb"><input type="text"  value="<{$userLocationEntity->ward}>" id="txtWard_2" name="txtWard_2"></div>
                                                            <i>*</i>
                                                            <span>Phuờng</span>
                                                        </li>
                                                         
                                                        <li class="textbox" id="dQuan_2">
                                                            <div class="bg_txtb">
                                                                <input type="text"  value="<{$userLocationEntity->district_id}>" id="txtQuan_2" name="txtQuan_2">
                                                                <input type="text" value="22" style="display:none" readonly="readonly" id="txtQuanHidden_2" name="txtQuanHidden_2">
                                                            </div>
                                                            <i>*</i>
                                                            <span>Quận</span>
                                                        </li>
                                                            
 
                                                        <li class="textbox" id="dChangePosition_2">
                                                            <a class="btn_change_add" id="aChangePos_2" href="http://www.nhommua.com/tp-ho-chi-minh/Profile/Location.aspx?CityID=8&amp;sp=7F010809057C&amp;Address=4"></a>
                                                        </li>
                                                    </ul>
                                                </li>                                               
                                                <li style="padding:0;" class="textbox">
                                                    <span style="line-height:24px;float:left;width:79px;text-align:right;">Lời nhắn</span>
                                                    <div style="width:auto; margin:0;" class="bg_txtb textarea"><textarea style="width:528px;" cols="8" rows="2" id="txtDesc_2" name="txtDesc_2"></textarea></div>                                                    
                                                </li>
                                                <li class="textbox request">
                                                    <ul class="info_line">
                                                        
                                                        <li style="display:none;" id="dConfirm_2">
                                                             
                                                            
                                                        </li>
                                                        <li style="display:block;" id="dSubScribe_2">
                                                           
                                                        </li>
                                                    </ul>
                                                </li>
                                                <li class="textbox">                                                    
                                                    <a id="btnTT_2" name="" href="javascript:void(0)" class="btn_mua_small" rel="Nganluong"></a>
                                                    <span class="payment-note" id="eMess_2"></span>
                                                </li>
                                            </ul>
                                        </li> 
                                        
                                           <!-- end mua no gift -->   	
                                       <!-- end mua bang ngan luong  -->
                                       <!-- mua bang tai khoan -->
                                                                              <!-- mua bang tai khoan -->
                                        <{if $userEntity->balance > 0}>
                                       <li class="icon_smartlink">
                                            <a id="aPTTT_3" name="" href="javascript:void(0)">
                                                <i class="checkbtn "></i>
                                                <span class="img_payment ">Tài khoản MuaHội</span>
                                            </a>
                                        </li>
                                           <!-- mua lam qua -->
                                         <li style="display:none" id="liGift_3" class="box_payment">
                                            <div class="ogr_gift"><i></i></div>
                                            <div class="bg_add bg_gift">
                                                <a onclick="showInfoGift(this);" id="dCheckGift_3" name="" href="javascript:void(0);"><i class="gift_check checked"></i></a>
                                                <input type="checkbox" style="display:none" id="cbGift_3" name="cbGift_3">
                                                <span>Dùng làm quà tặng</span>  
                                            </div>
                                            
                                            <ul class="box_payment_content">
                                                <li class="textbox bg_add">
                                                    <ul class="box_payment_content gift">
                                                        <li class="info_gift">
                                                            <span>Thông tin người gửi</span>
                                                        </li>
                                                        <li class="textbox name">
                                                            <div class="bg_txtb"><input type="text" value="<{$userEntity->fullname}>" id="txtName_3a" name="txtName_3a"></div>
                                                            <i>*</i>
                                                            <span>Họ và tên</span>
                                                        </li>                                                        
                                                          <li class="textbox phone">
                                                            <div class="bg_txtb"><input type="text" value="<{$userEntity->phone}>" id="txtPhone_3a" name="txtPhone_3a"></div>
                                                            <i>*</i>
                                                            <span>Điện thoại</span>
                                                        </li>
                                                        <li class="textbox change_color">
                                                            <ul class="box_payment_content ">
                                                                <li class="textbox">
                                                                    <div class="bg_txtb street"><input type="text"  value="<{$userLocationEntity->street}>" id="txtDuong_3a" name="txtDuong_3a"></div>
                                                                    <i>*</i>
                                                                    <span>Đường</span>
                                                                </li>
                                                                <li class="textbox num_home">
                                                                    <div class="bg_txtb number"><input type="text"  value="<{$userLocationEntity->number}>" id="txtSoNha_3a" name="txtSoNha_3a"></div>
                                                                    <i>*</i>
                                                                    <span>Số nhà</span>
                                                                </li>
                                                                <li class="textbox " id="liWard_3a">
                                                                    <div class="bg_txtb"><input type="text"  value="<{$userLocationEntity->ward}>" id="txtWard_3a" name="txtWard_3a"></div>
                                                                    <i>*</i>
                                                                    <span>Phường</span>
                                                                </li>
                                                                 
                                                                <li class="textbox" id="dQuan_3a">
                                                                    <div class="bg_txtb">
                                                                        <input type="text"  value="<{$userLocationEntity->district_id}>" id="txtQuan_3a" name="txtQuan_3a">
                                                                        <input type="text" value="22" readonly="readonly" style="display: none;" id="txtQuanHidden_3a" name="txtQuanHidden_3a">
                                                                    </div>
                                                                    <i>*</i>
                                                                    <span>Quận</span>
                                                                </li>
                                                                    
                                                                <li class="textbox" id="dChangePosition_3a">
                                                                    <a class="btn_change_add" id="aChangePos_3a" href="http://www.nhommua.com/tp-ho-chi-minh/Profile/Location.aspx?CityID=8&amp;sp=7F010809057C&amp;Address=5"></a>
                                                                </li>
                                                                <li class=""></li>
                                                            </ul>
                                                        </li>
                                                      
                                                        <li class="textbox message">
                                                            <span style="line-height:24px;float:left;width:79px;text-align:right;">Lời nhắn</span>
                                                            <div style="width:502px; margin:0;" class="bg_txtb textarea"><textarea style="width:476px;" cols="8" rows="2" id="txtDesc_3a" name="txtDesc_3a"></textarea></div>
                                                            
                                                        </li>
                                                    </ul>
                                                </li>
                                                <li class="textbox bg_add">
                                                    <ul class="box_payment_content gift">
                                                        <li class="info_gift">
                                                            <span>Thông tin người nhận - Nơi giao Voucher</span>
                                                        </li>
                                                        <li class="textbox name">
                                                            <div class="bg_txtb "><input type="text" value="<{$userEntity->fullname}>" id="txtName_3b" name="txtName_3b"></div>
                                                            <i>*</i>
                                                            <span>Họ và tên</span>
                                                        </li>
                                                          <li class="textbox phone">
                                                            <div class="bg_txtb"><input type="text" value="<{$userEntity->phone}>" id="txtPhone_3b" name="txtPhone_3b"></div>
                                                            <i>*</i>
                                                            <span>Điện thoại</span>
                                                        </li>
                                                        <li class="textbox change_color">
                                                            <ul class="box_payment_content ">
                                                                <li class="textbox">
                                                                    <div class="bg_txtb street"><input type="text"  value="<{$userLocationEntity->street}>" id="txtDuong_3b" name="txtDuong_3b"></div>
                                                                    <i>*</i>
                                                                    <span>Đường</span>
                                                                </li>
                                                                <li class="textbox num_home">
                                                                    <div class="bg_txtb number"><input type="text"  value="<{$userLocationEntity->number}>" id="txtSoNha_3b" name="txtSoNha_3b"></div>
                                                                    <i>*</i>
                                                                    <span>Số nhà</span>
                                                                </li>
                                                                <li class="textbox " id="liWard_3b">
                                                                    <div class="bg_txtb"><input type="text"  value="<{$userLocationEntity->ward}>" id="txtWard_3b" name="txtWard_3b"></div>
                                                                    <i>*</i>
                                                                    <span>Phường</span>
                                                                </li>
                                                                 
                                                                <li class="textbox" id="dQuan_3b">
                                                                    <div class="bg_txtb">
                                                                        <input type="text"  value="<{$userLocationEntity->district_id}>" id="txtQuan_3b" name="txtQuan_3b">
                                                                        <input type="text" value="22" readonly="readonly" style="display: none;" id="txtQuanHidden_3b" name="txtQuanHidden_3b">
                                                                    </div>
                                                                    <i>*</i>
                                                                    <span>Quận</span>
                                                                </li>
                                                                    
                                                                <li class="textbox" id="dChangePosition_3b">
                                                                    <a class="btn_change_add" id="aChangePos_3b" href="http://www.nhommua.com/tp-ho-chi-minh/Profile/Location.aspx?CityID=8&amp;sp=7F010809057C&amp;Address=6"></a>
                                                                </li>
                                                                <li class=""></li>
                                                            </ul>
                                                        </li>
                                                      
                                                        <li class="textbox message">
                                                            <span style="line-height:24px;float:left;width:79px;text-align:right;">Lời nhắn</span>
                                                            <div style="width:502px; margin:0;" class="bg_txtb textarea "><textarea style="width:476px;" cols="8" rows="2" id="txtDesc_3b" name="txtDesc_3b"></textarea></div>
                                                            
                                                        </li>
                                                    </ul>
                                                </li>
                                                <li class="textbox request">
                                                    <ul class="info_line">
                                                        
                                                        <li style="display:none;" id="dConfirm_3Gift">
                                                             
                                                            
                                                        </li>
                                                        <li style="display:block;" id="dSubScribe_3Gift">
                                                           
                                                        </li>
                                                    </ul>
                                                </li>
                                                <li class="textbox">                                                    
                                                    <a class="btn_mua_small" id="btnTT_3Gift" href="javascript:void(0)" rel="Balance"></a>
                                                    <span class="payment-note" id="eMess_3Gift"></span>
                                                </li>
                                            </ul>
                                        </li>  	
                                           <!-- end mua lam qua --> 
                                           <!-- mua no gift -->
                                           <li style="display: none;" id="liNoGift_3" class="box_payment">
                                            <div class="ogr_gift">
                                                <i></i>
                                            </div>
                                            <div class="bg_add bg_gift">
                                                <a onclick="showInfoGift(this);" id="dCheckNoGift_3" href="javascript:void(0);"><i class="gift_check"></i></a>
                                                <span>Dùng làm quà tặng</span>  
                                            </div>
                                            
                                            <ul class="box_payment_content">
                                                <li class="textbox">
                                                    <div class="bg_txtb"><input type="text" value="<{$userEntity->fullname}>" id="txtName_3" name="txtName_3"></div>
                                                    <i>*</i>
                                                    <span>Họ và tên</span>
                                                </li>
                                                 <li class="textbox">
                                                    <div class="bg_txtb"><input type="text" value="<{$userEntity->phone}>" id="txtPhone_3" name="txtPhone_3"></div>
                                                    <i>*</i>
                                                    <span>Điện thoại</span>
                                                </li>
                                                <li class="textbox bg_add">
                                                    <ul class="box_payment_content">
                                                        <li class="textbox">
                                                            <div class="bg_txtb street"><input type="text"  value="<{$userLocationEntity->street}>" id="txtDuong_3" name="txtDuong_3"></div>
                                                            <i>*</i>
                                                            <span>Đường</span>
                                                        </li>
                                                        <li class="textbox num_home">
                                                            <div class="bg_txtb number"><input type="text"  value="<{$userLocationEntity->number}>" id="txtSoNha_3" name="txtSoNha_3"></div>
                                                            <i>*</i>
                                                            <span>Số nhà</span>
                                                        </li>
                                                        <li class="textbox " id="liWard_3">
                                                            <div class="bg_txtb"><input type="text"  value="<{$userLocationEntity->ward}>" id="txtWard_3" name="txtWard_3"></div>
                                                            <i>*</i>
                                                            <span>Phường</span>
                                                        </li>
                                                         
                                                        <li class="textbox" id="dQuan_3">
                                                            <div class="bg_txtb">
                                                                <input type="text"  value="<{$userLocationEntity->district_id}>" id="txtQuan_3" name="txtQuan_3">
                                                                <input type="text" value="22" style="display:none" readonly="readonly" id="txtQuanHidden_3" name="txtQuanHidden_3">
                                                            </div>
                                                            <i>*</i>
                                                            <span>Quận</span>
                                                        </li>
                                                            
 
                                                        <li class="textbox" id="dChangePosition_3">
                                                            <a class="btn_change_add" id="aChangePos_3" href="http://www.nhommua.com/tp-ho-chi-minh/Profile/Location.aspx?CityID=8&amp;sp=7F010809057C&amp;Address=4"></a>
                                                        </li>
                                                    </ul>
                                                </li>                                               
                                                <li style="padding:0;" class="textbox">
                                                    <span style="line-height:24px;float:left;width:79px;text-align:right;">Lời nhắn</span>
                                                    <div style="width:auto; margin:0;" class="bg_txtb textarea"><textarea style="width:528px;" cols="8" rows="2" id="txtDesc_3" name="txtDesc_3"></textarea></div>                                                    
                                                </li>
                                                <li class="textbox request">
                                                    <ul class="info_line">
                                                        
                                                        <li style="display:none;" id="dConfirm_3">
                                                             
                                                            
                                                        </li>
                                                        <li style="display:block;" id="dSubScribe_3">
                                                         
                                                        </li>
                                                    </ul>
                                                </li>
                                                <li class="textbox">                                                    
                                                    <a id="btnTT_3" name="" href="javascript:void(0)" class="btn_mua_small" rel="Balance"></a>
                                                    <span class="payment-note" id="eMess_3"></span>
                                                </li>
                                            </ul>
                                        </li> 
                                        <{/if}>
                                           <!-- end mua no gift -->   	
                                       <!-- end mua bang tai khoan  -->
                                       <!--  end mua bang tai khoan -->
                                     </ul>
                                </div>
                            </div>
                                                      
                  			<!--end dang nhap-->

<!--Unknown-->
<script type="text/javascript">
	function processLogin(){
		//to do require
		$('#frmLogin').submit();
	}
	function showInfoGift(obj){
		$idNumber = obj.id.split("_");
		if($('#liGift_' + $idNumber[1]).css('display') == 'none'){
			$('#liGift_' + $idNumber[1]).css('display', 'block');
			$('#liNoGift_' + $idNumber[1]).css('display', 'none');
		}else{
			$('#liGift_' + $idNumber[1]).css('display', 'none');
			$('#liNoGift_' + $idNumber[1]).css('display', 'block');
		}
	}
	$(document).ready(function() {
		$('.checkbtn').click(function(e){
			$objPTTT = $(e.target).parent();

			 //hide all box payment
			 $('.box_payment').hide();
			 //show boxpayment which selected
			 $idPTTT = $objPTTT.attr('id');
			 $idNumber = $idPTTT.split("_");
			//if(typeof document.getElementById('#liPTTT_' + $idNumber[1]) != null){				 
				 $('#liPTTT_' + $idNumber[1]).css('display', 'block');
			// }else{
				 $('#liNoGift_' + $idNumber[1]).css('display', 'block');
			// } 
			 //remove class checked of icon
			 $('.checkbtn').removeClass('checked');
			 //add class checked for this selected
			 $(e.target).addClass('checked');
		});

		$('.btn_mua_small').click(function(e){
			$objBtn = $(e.target);
			$idBtn = $objBtn.attr('id');
			$idNumber = $idBtn.split("_");
			if($idBtn == 'btnTT_0'){
				$('#frm_fullname').val($('#txtName_' + $idNumber[1]).val());
				$('#frm_phone').val($('#txtPhone_' + $idNumber[1]).val());
				$('#frm_number_house').val($('#txtSoNha_' + $idNumber[1]).val());
				$('#frm_street').val($('#txtDuong_' + $idNumber[1]).val());
				$('#frm_ward_ngo').val($('#txtWard_' + $idNumber[1]).val());
				$('#frm_district').val($('#txtQuan_' + $idNumber[1]).val());
				$('#frm_note').val($('#txtDesc_' + $idNumber[1]).val());
			}else{
				$idNumber = $idNumber[1].substring(0,1);
				if($('#liGift_' + $idNumber).css('display') == 'block'){
					//recipient
					$('#frm_fullname').val($('#txtName_' + $idNumber + 'b').val());
					$('#frm_phone').val($('#txtPhone_' + $idNumber + 'b').val());
					$('#frm_number_house').val($('#txtSoNha_' + $idNumber + 'b').val());
					$('#frm_street').val($('#txtDuong_' + $idNumber + 'b').val());
					$('#frm_ward_ngo').val($('#txtWard_' + $idNumber + 'b').val());
					$('#frm_district').val($('#txtQuan_' + $idNumber + 'b').val());
					$('#frm_note').val($('#txtDesc_' + $idNumber + 'b').val());
					//sender
					$('#sender_frm_fullname').val($('#txtName_' + $idNumber + 'a').val());
					$('#sender_frm_phone').val($('#txtPhone_' + $idNumber + 'a').val());
					$('#sender_frm_number_house').val($('#txtSoNha_' + $idNumber + 'a').val());
					$('#sender_frm_street').val($('#txtDuong_' + $idNumber + 'a').val());
					$('#sender_frm_ward_ngo').val($('#txtWard_' + $idNumber + 'a').val());
					$('#sender_frm_district').val($('#txtQuan_' + $idNumber + 'a').val());
					
					$('#frm_isGift').val('1');
				}else{
					$('#frm_fullname').val($('#txtName_' + $idNumber).val());
					$('#frm_phone').val($('#txtPhone_' + $idNumber).val());
					$('#frm_number_house').val($('#txtSoNha_' + $idNumber).val());
					$('#frm_street').val($('#txtDuong_' + $idNumber).val());
					$('#frm_ward_ngo').val($('#txtWard_' + $idNumber).val());
					$('#frm_district').val($('#txtQuan_' + $idNumber).val());
					$('#frm_note').val($('#txtDesc_' + $idNumber).val());
					$('#frm_isGift').val('0');
				}
			}
			$('#frm_paymentMethod').val($objBtn.attr('rel'));
			//submit
			$('#frm_buy').submit();			
		});

		$('#ddlSL_0').change(function(){
			$quantity = $(this).val();
			$price = <{$dealsEntity->sale_price}>;
			$total_price = $quantity * $price;
			//$a = $(this).formatNumber({format:"#,###", locale:"us"});
			//$a = $.numberFormat($total_price);
			$('#spnTongGia').html($total_price);
		});
	});
</script>
                            
